<!DOCTYPE html>
<html>
<head>
    <title>志愿设计管理</title>
		<#include "/header.html">
    <script language="javascript">
        function preview(oper)
        {
            if (oper < 10){
                bdhtml=window.document.body.innerHTML;//获取当前页的html代码
                sprnstr="<!--startprint"+oper+"-->";//设置打印开始区域
                eprnstr="<!--endprint"+oper+"-->";//设置打印结束区域
                prnhtml=bdhtml.substring(bdhtml.indexOf(sprnstr)+18); //从开始代码向后取html
                prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));//从结束代码向前取html
                window.document.body.innerHTML=prnhtml;
                window.print();
                window.document.body.innerHTML=bdhtml;
            } else {
                window.print();
            }
            window.location.reload();
        }
    </script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">

                <select class="form-control" v-model="type"  @keyup.enter="query">
                    <option>等待录取结果</option>
                    <option>等待审核</option>
                    <option>审核通过</option>
                    <option>已过期</option>

                </select>
            </div>
            <a class="btn btn-default" @click="query">查询</a>
           <!-- <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
            <#if shiro.hasPermission("gaokaobaobei:userbackup:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
        </#if>
        <#if shiro.hasPermission("gaokaobaobei:userbackup:delete")>
        <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
    </#if>
    <code class="language-html"><a href="javascript:void(0)" class="btn btn-primary" onclick="exportWord()">导出Word文档</a></code>
    <input type=button name='button_export' title='打印' class="btn btn-primary" onclick=preview(1) value=打印>
    <span v-html="number">{{number}}</span>
</div>
<!--startprint1-->
<div id="export_word">
    <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
        </div>
    </div>

<div v-show="!showList" class="panel panel-default" >
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-2 control-label">姓名</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="userBackup.name" placeholder="姓名"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">考号</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="userBackup.candidateNumber" placeholder="考号"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">文理属性</div>
            <div class="col-sm-10">
               <select  v-model="userBackup.wlProperty">
                   <option>文科</option>
                   <option>理科</option>
               </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">分数</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="userBackup.score" placeholder="分数"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">高中</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="userBackup.highSchool" placeholder="高中"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">联系电话</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="userBackup.phone" placeholder="联系电话"/>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-2 control-label">招生类型</div>
            <div class="col-sm-10">
                <select v-model="typeID">
                    <option>单招</option>
                    <option>夏考</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">状态</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" disabled="disabled" v-model="userBackup.type" placeholder="状态"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">报备时间</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" disabled="disabled" v-model="userBackup.creationDate" placeholder="报备时间"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
            &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
        </div>
    </form>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/gaokaobaobei/userbackup.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/js/modules/gaokaobaobei/FileSaver.js"></script>
<script src="${request.contextPath}/statics/js/modules/gaokaobaobei/jquery.wordexport.js"></script>
<script>
    function exportWord(){
        $("#export_word").wordExport();
    }
</script>
<!--endprint1-->
</body>
</html>